
import progress from "nprogress";
import router from "@/router";
import bus from "@/utils/bus";
import "nprogress/nprogress.css";
router.beforeEach((to, from, next) => {
    progress.start();
    next();

})

router.afterEach((to,from) => {
    progress.done();
    bus.emit("router-change",to.path);
})